﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace KSS.Generator.Schema
{
    public class Function
    {
        private string _name;
        [XmlAttribute]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _method;
        [XmlAttribute]
        public string Method
        {
            get { return _method; }
            set { _method = value; }
        }

        private Return _return;
        [XmlElement(ElementName = "Return", Type = typeof(Return), IsNullable = true)]
        public Return Return
        {
            get { return _return; }
            set { _return = value; }
        }

        private ElementType _elementType;
        [XmlElement(ElementName = "ElementType", Type = typeof(ElementType), IsNullable = true)]
        public ElementType ElementType
        {
            get { return _elementType; }
            set { _elementType = value; }
        }

        private List<Parameter> _parameters;
        [XmlElement(ElementName = "Parameter", Type = typeof(Parameter), IsNullable = true)]
        public List<Parameter> Parameters
        {
            get { return _parameters; }
            set { _parameters = value; }
        }

    }
}
